package com.carkeeper.subject.feign;
import com.carkeeper.common.utils.Result;
import com.carkeeper.subject.pojo.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "subject")
public interface SubjectFeign {
    //根据id查询store
    @GetMapping("/store/findById/{id}")
    public Result<Store> findById(@PathVariable("id") Long id);
//根据id查询查询商家 和商家详情
    @GetMapping("/store/findByOrderStoreId/{id}")
    public Result<Store> findByOrderStoreId(@PathVariable("id") Long id);
}
